<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>卫生检查管理</title>
	<meta name="decorator" content="default"/>
	<link type="text/css" rel="stylesheet" href="${ctxStatic}/css/dmsHealthCheckForm.css" />
	<script type="text/javascript" src="${ctxStatic}/js/dmsHealthCheckForm.js"></script>
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
</head>
<body>
 	<ul class="nav nav-tabs">
		<%-- <li><a href="${ctx}/healthcheck/dmsHealthCheck/">卫生检查列表</a></li> --%>
		<li class="active"><a href="${ctx}/healthcheck/dmsHealthCheck/form?id=${dmsHealthCheck.id}">卫生检查<shiro:hasPermission name="healthcheck:dmsHealthCheck:edit">${not empty dmsHealthCheck.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="healthcheck:dmsHealthCheck:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/> 
	
	<div class="head_tip">添加检查结果</div><br><br>
	<form:form id="inputForm" modelAttribute="dmsHealthCheck" action="${ctx}/healthcheck/dmsHealthCheck/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
<%-- 		<div class="control-group">
			<label class="control-label">检查日期：</label>
			<div class="controls">
				<input name="checkDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate "
					value="<fmt:formatDate value="${dmsHealthCheck.checkDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</div>
		</div> --%>
		
			<div class="control-group">
			<label class="control-label">检查日期：</label>
			<div class="controls">
				<input name="checkDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate w required" id="checkDateId"
					value="<fmt:formatDate value="${dmsHealthCheck.checkDate}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">宿舍号：</label>
			<div class="controls">
				<form:input path="dormitoryNumber" htmlEscape="false" maxlength="20" class="input-xlarge c required" id="dormitoryNumberId" pattern="^[A-Z][0-9]{3}$"/>
				<span class="help-inline"><font color="red" id="msgInfo1">*</font> </span>
				<span class="help-inline"><font>（楼号+宿舍编号（如：A405））</font> </span>
			</div>
		</div><br>
		

		<div class="tip_middle">卫生扣分项</div><br>
		<div class="control-group f">
			<label class="control-label">地面：</label>
			<div class="controls">
		     	<form:input path="ground" htmlEscape="false" maxlength="20" class="input-xlarge c required" id="groundId" pattern="^[0-9]{1,2}$"/>
				<span class="help-inline"><font color="red" id="msgInfo2">*</font> </span>
				<span class="help-inline"><font>（1-99）</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">墙面：</label>
			<div class="controls">
				<form:input path="metop" htmlEscape="false" maxlength="20" class="input-xlarge c required" id="metopId" pattern="^[0-9]{1,2}$"/>
				<span class="help-inline"><font color="red" id="msgInfo3">*</font> </span>
				<span class="help-inline"><font>（1-99）</font> </span>
			</div>
		</div>
		<div class="control-group f">
			<label class="control-label">阳台：</label>
			<div class="controls">
				<form:input path="balcony" htmlEscape="false" maxlength="20" class="input-xlarge c required" id="balconyId" pattern="^[0-9]{1,2}$"/>
				<span class="help-inline"><font color="red" id="msgInfo4">*</font> </span>
				<span class="help-inline"><font>（1-99）</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">其它：</label>
			<div class="controls">
				<form:input path="others" htmlEscape="false" maxlength="20" class="input-xlarge c required" id="othersId" pattern="^[0-9]{1,2}$"/>
				<span class="help-inline"><font color="red" id="msgInfo5">*</font> </span>
				<span class="help-inline"><font>（1-99）</font> </span>
			</div>
		</div>
		<div class="control-group" hidden="hidden">
			<label class="control-label">检查结果：</label>
			<div class="controls">
				<form:input path="checkResult" value="..." htmlEscape="false" maxlength="255" class="input-xlarge c " id="checkResultId" onfocus="this.blur()"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">备注：</label>
			<div class="controls">
				<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class="input-xxlarge "/>
			</div>
		</div>
		<div class="form-actions form_b">
			<shiro:hasPermission name="healthcheck:dmsHealthCheck:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="确认添加"/>&nbsp;</shiro:hasPermission>
		
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>